package com.heima.comment.feign;

import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @GetMapping("/api/v1/article/findById/{id}")
    ResponseResult<ApArticle> findById(@PathVariable("id") Long id);

}
